<include file="Public:header" />
	<script type="text/javascript" src="__PUBLIC__/js/iColorPicker.js"></script>
	<script type="text/javascript">
		$(
			function(){
				var fcolor = "{$content.fontColor}";
				if(fcolor!=""){
					 $("#fontColor").val(fcolor);
					 $("#fontColor").css("background-color",fcolor);
				}
			}
		);
	</script>
<div class="main" >
	<div id="navigation"> &nbsp;当前位置 > 内容管理 > 修改内容</div>
	<div class="mainmenu"><a href="__URL__/contentList/type/{$model.tablename}"> < 返 回</a></div>
	<form id="contentForm" action="__URL__/doEditContent" method="post" enctype="multipart/form-data">
	<table id="mainform">
		<tr>
			<th width="80">参数说明</th><th>参数值</th>
		</tr>
		<tr>
			<td>内容模型: </td>
			<td>{$model.name}<input type="hidden" name="type" value="{$model.tablename}" /></td>
		</tr>
		<tr>
			<td>栏   目: </td>
			<td id="cathtml">
				{$cats}
			</td>
		</tr>
		<tr>
			<td>标   题: </td><td><input type="hidden" name="id" value="{$content.id}" /><input type="text" id="title" name="title" value="{$content.title}" />
								<br/>
				标题样式：粗体 <input type="checkbox" id="isStrong" name="isStrong" value="strong" <?php echo $content['isStrong']?'checked="checked"':''; ?> />&nbsp; 
				斜体   <input type="checkbox" id="isi" name="isi" value="i" <?php echo $content['isi']?'checked="checked"':''; ?> />&nbsp; 
				删除线 <input type="checkbox" id="iss" name="iss" value="s" <?php echo $content['iss']?'checked="checked"':''; ?> />&nbsp; 
				颜色： <input type="text" id="fontColor" name="fontColor" value="" style="width:80px;" class="iColorPicker"/>
				</td>
		</tr>
		<tr>
			<td>点击数: </td><td><input type="text" id="num" name="num" value="{$content.num}" />填0系统将按照内容模型设置随机取值</td>
		</tr>
		<tr>
			<td>标   志: </td>
			<td>
				<div class="radio">
					<input type="checkbox" id="istop" name="istop" value="1" <?php echo $content['istop']?'checked="checked"':''; ?> /><label for="istop">置顶</label>
					<input type="checkbox" id="isrecom" name="isrecom" value="1"  <?php echo $content['isrecom']?'checked="checked"':''; ?> /><label for="isrecom">推荐</label>
					<input type="checkbox" id="isimg" name="isimg" value="1"  <?php echo $content['isimg']?'checked="checked"':''; ?> /><label for="isimg">图片</label>
				</div>
			</td>
		</tr>
		<tr>
			<td>缩略图: </td><td>
				<empty name="content.img">还没有上传图片<br/><else /> <img src="{$Think.UPLOAD_URL}{$content.img}" width="120"  /> </empty>
				
				<input type="file" id="img" name="img" value="" /></td>
		</tr>
		<tr>
			<td>关键字: </td><td><input type="text" id="keyword" name="keyword" value="{$content.keyword}" /></td>
		</tr>
		<tr>
			<td>描     述: </td><td><textarea name="info" id="info" rows="3" cols="50">{$content.info}</textarea></td>
		</tr>
  </table>
  <div class="mainmenu"><input type="submit" id="subutton" value="下一步 >"/>&nbsp;&nbsp;<input type="reset" value="重 置"/></div>
  </form>
</div>
 